import { IPSControl } from '@ibiz/dynamic-model-api';

/**
 * 拼接部件展示名称
 *
 * @author chitanda
 * @date 2021-05-14 15:05:11
 * @export
 * @param {IPSControl} model
 * @return {*}  {string}
 */
export function controlName(model: IPSControl): string {
  if (model.logicName) {
    return `${model.logicName}[${model.name}]`;
  }
  return model.name;
}
